﻿using DongFangGuoKai.WMSPlatform.Core;
using DongFangGuoKai.WMSPlatform.Domain.Models;

namespace DongFangGuoKai.WMSPlatform.Service.InstructApp
{
    public partial class InstructService : IInstructService
    {

        public InstructService(Repository<t_Instruct> instructRepo,Repository<t_AgvInstruct> agvInstructRepo)
        {
            InstructRepo = instructRepo;
            AgvInstructRepo = agvInstructRepo;
        }

        Repository<t_Instruct> InstructRepo { get; }
        Repository<t_AgvInstruct> AgvInstructRepo { get; }

        public async Task<t_Instruct> GetInstructByBussinessGroupId(Guid bussinessGroupId)
        {
          
            return await InstructRepo.GetFirstAsync(t => t.BusinessGroupId == bussinessGroupId);
        }
    }
}
